defind(['jquery'],()=>{
    class  Header{
        constructor(){
            this.loadHTML().then(() => {
                this.search()
                this.calcCartCount()
            })
        }
        loadHTML() {
            return new Promise(resolve => {
                $('header').load('/html/modules/header.html', () => {
                    resolve()
                })
            })
        }
    }
    return new Header()
})